home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 1 / CU Amiga Magazine CD-ROM Special Edition (1995)(EMAP Images)(GB)[Issue 1995-11].iso / Aminet / comm / tcp / AmiTCPsdk_40.lha / AmiTCP-4.0 / netinclude / clib / netlib_protos.h next >
C/C++ Source or Header  |  1994-10-03  |  5KB  |  231 lines

  1. #ifndef CLIB_NETLIB_PROTOS_H
  2. #define CLIB_NETLIB_PROTOS_H \
  3.        "$Id: netlib_protos.h,v 4.3 1994/10/03 20:54:51 ppessi Exp $"
  4. /*
  5.  *      Prototypes for netlib utility functions
  6.  *
  7.  *      Copyright © 1994 AmiTCP/IP Group,
  8.  *                       Network Solutions Development, Inc.
  9.  *                       All rights reserved.
  10.  */
  11.  
  12. #ifndef EXEC_TYPES_H
  13. #include <exec/types.h>
  14. #endif
  15. #ifndef SYS_TYPES_H
  16. #include <sys/types.h>
  17. #endif
  18. #ifndef SYS_CDEFS_H
  19. #include <sys/cdefs.h>
  20. #endif
  21. #ifndef EXEC_LIBRARIES_H
  22. struct Library;
  23. #endif
  24. #ifndef SYS_TIME_H
  25. #include <sys/time.h>
  26. #endif
  27. #ifndef SYS_SOCKET_H
  28. #include <sys/socket.h>
  29. #endif
  30. #ifndef NETDB_H
  31. struct hostent;
  32. struct netent;
  33. struct servent;
  34. struct protoent;
  35. #endif
  36. #ifndef NETINET_IN_H
  37. #include <netinet/in.h>
  38. #endif
  39. #ifndef DOS_DOS_H
  40. #include <dos/dos.h>
  41. #endif
  42. #ifndef DOS_RDARGS_H
  43. #include <dos/rdargs.h>
  44. #endif
  45. #ifndef SYS_STAT_H
  46. #include <sys/stat.h>
  47. #endif
  48.  
  49. #ifndef _STDARG_H
  50. #include <stdarg.h>
  51. #endif
  52.  
  53. /* access.c */
  54. int __access(const char *name, int mode);
  55.  
  56. /* autoinit.c */
  57. extern int h_errno;
  58. extern struct Library *SocketBase;
  59. LONG __stdargs _STI_200_openSockets(void);
  60. void __stdargs _STD_200_closeSockets(void);
  61.  
  62. /* chmod.c */
  63. int chmod(const char *path, int mode);
  64.  
  65. /* chown.c */
  66. int chown(const char *name, uid_t uid, gid_t gid);
  67.  
  68. /* dosio_init.c */
  69. extern BPTR __dosio_files[3];
  70. long __stdargs _STI_500_dosio_init(void);
  71.  
  72. /* dosio_sprintf.c */
  73. ULONG VCSPrintf(struct CSource *, const char *, va_list);
  74. ULONG CSPrintf(struct CSource *, const char *, ...);
  75. ULONG VSPrintf(STRPTR, const char *, va_list);
  76. ULONG SPrintf(STRPTR, const char *, ...);
  77.  
  78. /* dummy.c */
  79. struct hostent  *gethostent(void);
  80. struct netent  *getnetent(void);
  81. struct servent  *getservent(void);
  82. struct protoent *getprotoent(void);
  83.  
  84. /* fhopen.c */
  85. int fhopen(long file, int mode);
  86.  
  87. /* getopt.c */
  88. extern int opterr;
  89. extern int optind;
  90. extern int optopt;
  91. extern char *optarg;
  92. int   getopt(int argc, char * const argv[], char const *opts);
  93.  
  94. /* getpid.c */
  95. pid_t getpid(void);
  96.  
  97. /* gettimeofday.c */
  98. int   gettimeofday(struct timeval *tp, struct timezone *tzp);
  99.  
  100. /* herror.c */
  101. void  herror(const char *banner);
  102.  
  103. /* init_inet_daemon.c */
  104. int init_inet_daemon(void);
  105.  
  106. /* init_usergroup.c */
  107. extern struct Library *UserGroupBase;
  108. LONG __stdargs _STI_200_openUserGroup(void);
  109. void __stdargs _STD_200_closeUserGroup(void);
  110.  
  111. /* ioctl.c */
  112. int ioctl(int fd, unsigned int request, char *argp);
  113.  
  114. /* iomode.c */
  115. int iomode(int fd, int mode);
  116.  
  117. /* isatty.c */
  118. int isatty(int fd);
  119.  
  120. /* lineread.c */
  121. int   lineRead(struct LineRead * rl);
  122.  
  123. /* perror.c */
  124. void  perror(const char *banner);
  125.  
  126. /* popen.c */
  127. #ifndef _STDIO_H
  128. struct __iobuf; /* typedef struct __iobuf FILE */
  129. #endif
  130. struct __iobuf *popen(const char *cmd, const char *mode);
  131. struct __iobuf *popenl(const char *arg0, ...);
  132. int pclose(struct __iobuf *fptr);
  133. void __stdargs _STD_4000_popen(void);
  134. char *mktemp(char * template);
  135.  
  136. /* printfault.c */
  137. void  PrintNetFault(LONG code, const UBYTE *banner);
  138.  
  139. /* printuserfault.c */
  140. void  PrintUserFault(LONG code, const UBYTE *banner);
  141.  
  142. /* rcmd.c */
  143. int   rcmd(char **, int, const char *, const char *, const char *, int *);
  144. int   rresvport(int *alport);
  145.  
  146. /* serveraccept.c */
  147. long serveraccept(char *pname, struct sockaddr_in *ha);
  148.  
  149. /* set_socket_stdio.c */
  150. int set_socket_stdio(int sock);
  151.  
  152. /* setegid.c */
  153. int setegid(gid_t g);
  154.  
  155. /* seteuid.c */
  156. int seteuid(uid_t u);
  157.  
  158. /* sleep.c */
  159. void sleep(unsigned int secs);
  160.  
  161. /* stat.c */
  162. int stat(const char *name, struct stat *st);
  163.  
  164. /* strerror.c */
  165. char *strerror(int code);
  166.  
  167. /* stubs.c */
  168. #if !defined(__SASC) || !defined(_OPTINLINE) /* these are inlined for SAS/C */
  169. char * inet_ntoa(struct in_addr addr);
  170. struct in_addr inet_makeaddr(int net, int host);
  171. unsigned long inet_lnaof(struct in_addr addr);
  172. unsigned long inet_netof(struct in_addr addr);
  173. int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exeptfds,
  174.        struct timeval *timeout);
  175. #endif
  176.  
  177. /* syslog.c */
  178. void  openlog(const char *ident, int logstat, int logfac);
  179. void  closelog(void);
  180. int   setlogmask(int pmask);
  181.  
  182. /* timerinit.c */
  183. extern long __local_to_GMT;
  184. extern struct Library *TimerBase; /* actually struct Device * */
  185. LONG __stdargs _STI_200_openTimer(void);
  186. void __stdargs _STD_200_closeTimer(void);
  187.  
  188. /* usleep.c */
  189. void usleep(unsigned int usecs);
  190.  
  191. /* utime.c */
  192. #ifndef UTIME_H
  193. struct utimbuf;
  194. #endif
  195. int utime(const char *name, const struct utimbuf *times);
  196.  
  197. #ifndef _IOS1_H
  198. struct UFB;
  199. #endif
  200.  
  201. /* _allocufb.c */
  202. struct UFB * __allocufb(int *fdp);
  203.  
  204. /* _chkufb.c */
  205. long __stdargs _STI_1000_install_AmiTCP_callback(void);
  206. long ASM SAVEDS fdCallback(REG(d0) int fd, REG(d1) int action);
  207. struct UFB * __chkufb(int fd);
  208.  
  209. /* _close.c */
  210. int __close(int fd);
  211.  
  212. /* _dup.c */
  213. /* _dup2.c */
  214.  
  215. /* _fstat.c */
  216. int fstat(int fd, struct stat *st);
  217.  
  218. /* _lseek.c */
  219. long __lseek(int fd, long rpos, int mode);
  220.  
  221. /* _open.c */
  222. __stdargs int __open(const char *name, int mode, ...);
  223.  
  224. /* _read.c */
  225. int __read(int fd, void *buffer, unsigned int length);
  226.  
  227. /* _write.c */
  228. int __write(int fd, const void *buffer, unsigned int length);
  229.  
  230. #endif /* !CLIB_NETLIB_PROTOS_H */
  231.